<?php 

$id = $_GET['id'];

$db = include './db.php';

$newData = $_POST;

$newData['create_time'] = time();

$db[$id]=$newData;

$db = var_export($db,true);

$db = "<?php return ".$db."?>";

file_put_contents('./db.php', $db);

header("Location:./index.php");




 ?>